import { ApiCall } from "tsrpc";
import { ReqLook, ResLook } from "../../../../shared/master/copy/dna/PtlLook";
import { player } from "../../../../model/fight/body/player";
import app, { xlsxCfgNames } from "../../../../app";
import { Tpl_copy_default, template } from "../../../../shared/master/MsgAction";
import god from "../../../../god";

export default async function (call: ApiCall<ReqLook, ResLook>) {
    call.succ({})
    let user = call.req._player as player;
    let leve = user.get_DNA_Lv();
    let nowInfo = god.getDNA_info(leve)

    let upList: string[] = [];
    upList.push(`称号资质上限+${leve + 1}00%`)
    upList.push(`天赋资质上限+${leve + 1}00%`)
    upList.push(`血统资质上限+${leve + 1}00%`)
    upList.push(`人物等级上限+${(leve + 1) * 1000}`)
    let tpl: Tpl_copy_default = {
        title: "基因锁·试炼",
        desc: nowInfo.desc,
        gift_title: "下一阶加成",
        gift_list: upList,
        enter_str: "确认开始基因锁试炼"
    }
    user.sendMsg(template.通用副本, tpl)
}